<div id="header">
    <div id="logo">
        <table>
            <tr><td><img id="img1" src="img/drink4.gif" /></td><td id="testo">byNight</td><td><img id="img2" src="img/drink1.png"/></td></tr>
        </table>
    </div>
    <div id="menu">
        <a href="index.jsp"><button type="button" name="home" value="home" class="css3button">Home</button></a>
        <a href="info.jsp"><button type="button" name="contatti" value="home" class="css3button">Info</button></a>
        <a href="/EsameSSCSWeb-war/Servlet?action=visualizzaPrenotazioni"><button type="button" name="home" value="home" class="css3button">Prenotazioni</button></a>
    <% if(session.getAttribute("login") != null) { %>
        
        <button type="button" name="login" class="css3button" onclick="expand(this)">Logout</button>
        <button type="button" name="cerca" class="css3button" onclick="expand(this)">Cerca</button>
    </div>
    <div id="subbar3">
        <button type="button" name="home" value="home" class="css3button3" />
    </div>
    <div id="login">
        <p id="loginUser">Ciao <%=session.getAttribute("login") %>
            <a href="/EsameSSCSWeb-war/Servlet?action=logout">Logout</a></p>
    </div>
    <% } else { %>
        <button type="button" name="login" class="css3button" onclick="expand(this)">Login</button>
        <button type="button" name="cerca" class="css3button" onclick="expand(this)">Cerca</button>
    </div>
    <div id="subbar2">
        <button type="button" name="home" value="home" class="css3button2" />
    </div>
    <div id="login" >
        <form action="/EsameSSCSWeb-war/Servlet?action=login" method="post">
            <table border="0">
                <tr>
                    <td>
                        <input type="radio" name="scelta" value="cliente" onclick="change(this)" checked>Cliente</input>
                        <input type="radio" name="scelta" value="locale" onclick="change(this)">Locale</input>
                    </td>
                </tr>
                <tr>
                    <td>
                        Username:
                    </td>
                    <td>
                        <input type="text" name="user"/>
                    </td>
                </tr>
                <tr>
                    <td>
                    Password:
                    </td>
                    <td>
                        <input type="password" name="password"/>
                    </td>
                </tr>
            </table>
            <button id="submit" type="submit">Login <img src="img/ok.gif" alt="ok"/></button>
        </form>
        <a href="/EsameSSCSWeb-war/Servlet?action=visualizzaRegistrazione">Registrazione</a>
    </div>
    <% } %>
    <div id="subbar1">
        <button type="button" name="home" value="home" class="css3button1" />
    </div>
    <div id="cerca">
        <form action="/EsameSSCSWeb-war/Servlet?action=cerca" method="post">
            <input type="radio" name="table" value="locale" checked="selected"/>Locale
            <input type="radio" name="table" value="evento"/>Evento
            <input type="text" name="cerca"/>
            <input type="submit" name="send"/>
        </form>
    </div>
</div>
